package com.dxy.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dxy.common.pojo.Resource;
import com.dxy.user.mapper.ResourceMapper;
import com.dxy.user.service.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> implements ResourceService {

    @Autowired
    private ResourceMapper resourceMapper;


    @Override
    public List<Resource> findUserResource(Integer userId) {
        return resourceMapper.findUserResource(userId);
    }
}
